#ifndef MODELPROPOSALA_H
#define MODELPROPOSALA_H

#include <QAbstractListModel>
#include <QStringList>

class ModelproposalA : public QAbstractListModel
{
    Q_OBJECT
public:
    explicit ModelproposalA(QObject *parent = 0);
    QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
    int rowCount(const QModelIndex &parent = QModelIndex()) const;    
private:
    void fillModel();
     QList<QMap<QString,QString>> dataList;
     QMap<QString,QMap<QString,QString>> assistDataList;
    enum Roles {
        ItemName = Qt::UserRole + 1,
        ItemID,
        ItemIcon,
        ItemBid ,
        ItemBayout,
        ItemQuntity,
        ItemTimeleft,
        ItemRand,
        ItemSeed
    };
    QHash<int, QByteArray> roleNames() const;
signals:

public slots:
    void refresh();

};

#endif // MODELPROPOSALA_H
